/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util.common;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 *
 * @author fillipe
 */
public class ConfigFileConstants {

    public static String getFileConfig(String fileName, String property) {

        File file = new File(fileName);
        Properties properties = new Properties();
        try {
            FileInputStream in = new FileInputStream(file);
            properties.load(in);
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
            return null;
        }
        return properties.getProperty(property);        
    }
}
